<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>

<script type="text/javascript" src="<?php echo JS_PATH;?>member_common.js"></script>

<style>

.submit {

	padding-left: 3px

}

.submit,.submit input {

	background: url(<?php echo IMG_PATH;?>member/but.png) no-repeat;

	height: 29px;

	cursor: hand;

}



.submit input {

	background-position: right top;

	border: none;

	padding: 0 10px 0 7px;

	font-size: 14px

}



.reg {

	color: #666;

	line-height: 24px

}



.reg .submit {

	background-position: left -35px;

	height: 35px

}



.reg .submit input {

	background-position: right -35px;

	font-weight: 700;

	color: #fff;

	height: 35px

}

.newest .newestTit a{background-image:none; line-height:25px;}

</style>

<!--main-->

<div id="mainbody">

<!--startprint-->

	<div class="essay_left">

        <div class="introduce">

            	<h2 class="introduceTit"><span class="titlename"><?php echo $title;?></span></h2>

                <ul class="e_newsList">

                	<li><span><?php echo L('Release_mechanism');?>：</span><strong><?php echo $fbjg;?></strong></li>

                    <li><span><?php echo L('inputtime');?>：</span><strong><?php echo $fbrq;?></strong></li>

                </ul>

                <p class="valid"><?php echo $description;?></p>

        </div>

		<div class="newest">

			<h2 class="newestTit">
				<a href="javaScript:void(0)" class="hover" ><?php echo L('en_text');?></a><a href="javaScript:void(0)" ><?php echo L('china_text');?></a>				<a class="print" href="<?php echo APP_PATH;?>?m=content&c=index&a=send_contents_email&catid=<?php echo $catid;?>&id=<?php echo $id;?>"><em class="dy01"></a></em><em class="dy02" onclick="javascript:doPrint()"></em>			</h2>

			<div class="content">
			<?php if($power_content == 1) { ?>
			   	<?php echo $pcontent;?>
			<?php } else { ?>
			  	<?php echo $interpret_content;?>
			<?php } ?>			
			</div>

			<div class="content hide"><?php echo $content;?></div>

                                                <div id="pages" class="text-c"><?php echo $pages;?></div>


		</div>

	</div>

<!--endprint-->

	<div class="essay_right">

		<h2 class="sort"><?php echo L('author_questions');?></h2>

		<div style="padding: 5px;">

			<p>

			    <?php $usernamecode =urlencode($username) ?>

				<a href="?m=member&c=index&a=sendemail_author&username=<?php echo $usernamecode;?>">向作者<?php echo $username;?>提问</a>

			  	

			</p>

		</div>

		<h2 class="sort"><?php echo L('related_articles');?></h2>

		<div class="menu news_update">

	         <ul>

		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=59d3146c936b0bbb61d83c4d89437c20&action=relation&relation=%24relation&id=%24id&catid=%24catid&num=5&keywords=%24rs%5Bkeywords%5D\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'relation')) {$data = $content_tag->relation(array('relation'=>$relation,'id'=>$id,'catid'=>$catid,'keywords'=>$rs[keywords],'limit'=>'5',));}?>

              <?php if($data) { ?>

                        <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>

							<li><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></li>

			             	<li><?php echo L('updatetime');?>: <?php echo date("Y-m-d", $r[updatetime]);?></li>

			             	<li class="mr5 mb10 butli"><?php echo L('publish_user');?>: <?php echo $r['username'];?></li>

                        <?php $n++;}unset($n); ?>

              <?php } ?>

          <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>

		  	</ul>

		</div>

		<h2 class="sort"><?php echo L('classify');?></h2>

		<div class="menu">

			<iframe name="center_frame" id="center_frame"

				src="?m=content&c=index&a=public_categorys&type=add&menuid=822&pc_hash=eAyt1x"

				frameborder="false" scrolling="auto" style="border: none"

				width="100%" height="700" allowtransparency="true"></iframe>

		</div>

	</div>

	<div class="clear"></div>

</div>

<div class="bk10"></div>

<?php if($repebrow == 3) { ?>

	<script>

	        	  $(function(){

	        		  window.top.art.dialog({id:'login'}).close(); 

	        		  window.top.art.dialog({title:'login',id:'login',iframe:'<?php echo APP_PATH;?>index.php?m=member&c=index& a=login&siteid=<?php echo $siteid;?>&dialog=login',width:'480',height:'300'}); 

	        		  $(".aui_close").remove();

	        	  })  

        	</script>
	<?php } elseif ($repebrow == 2) { ?>

	<script>

		     	$(function(){

		     			var html = "<div class=\"reg\"><?php echo L('need_buy_read');?><br /><div class=\"submit\"><input type=\"button\" name=\"register\" value=\"<?php echo L('buy_read');?>\" onclick=\"redirect('<?php echo APP_PATH;?>index.php?m=member&c=index&a=publicreapackage&siteid=<?php echo $siteid;?>')\"></div></div>";  

		     			window.top.art.dialog({id:'buyread'}).close(); 

		     			var dialog = art.dialog({title:'Buy and read', id:'buyread', content:html,width:'280',height:'100',  lock: true, dblclick_hide:false}); 

		     			dialog.shake && dialog.shake();

		       		  	$(".aui_close").remove();

		       	 })  

		     </script>

	<?php } elseif (empty($_username)) { ?>
  	     <script>

	        	    setTimeout(showlogin , 120000);

	        	     function showlogin(){
	        		  window.top.art.dialog({id:'login'}).close(); 

	        		  window.top.art.dialog({title:'login',id:'login',iframe:'<?php echo APP_PATH;?>index.php?m=member&c=index& a=login&siteid=<?php echo $siteid;?>&dialog=login',width:'480',height:'300'}); }
        	</script>


	<?php } ?>
<!--footer-->



<?php include template("content","footer"); ?>

